Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(e2ei): set user display name correctly for the certificate downloaded file (WPB-8606) #2941

Closed
wants to merge 134 commits into from

Conversation

mchenani
Copy link
Contributor

@mchenani mchenani commented Apr 26, 2024

BugWPB-8606 [Android] When downloading another users certificate, saved file has wrong name

…aded file


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Set display name for the certificate downloaded file.

Issues

The self user name was set even for other users cert.

Causes (Optional)

Wasn't handled.


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

alexandreferris and others added 30 commits January 21, 2024 11:56
Copy link
Contributor

github-actions bot commented Apr 26, 2024

Test Results

820 tests   820 ✅  7m 55s ⏱️
110 suites    0 💤
110 files      0 ❌

Results for commit 3b61110.

♻️ This comment has been updated with latest results.

@AndroidBob
Copy link
Collaborator

Build 4477 failed.

Copy link
Contributor

APKs built during tests are available here. Scroll down to Artifacts!

@AndroidBob
Copy link
Collaborator

Build 4478 succeeded.

The build produced the following APK's:

Copy link
Member

@MohamadJaara MohamadJaara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion about making it simpler to use

Comment on lines +21 to +23
val certificateString: String,
val isSelfUser: Boolean,
val otherUserName: String? = null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. we should keep using the handle instead of the name, since the handle is unique.
  2. to simplify the screen, we can only pass the user ID and fetch the handle from DB when needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this feature is fancy and no requirements on it, and display name on the file might be more readable, didn't want to do a query to fetch data that is unnecessary, also since we add a date to the end of the file, duplicate names won't occur.

@mchenani mchenani closed this May 3, 2024
@yamilmedina yamilmedina deleted the fix/download-certificate-file-name branch July 30, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.